package com.amap.api.col.s;

import android.content.Context;
import android.os.Build;
import org.json.JSONObject;

/* compiled from: AAIDCreateRequest.java */
/* loaded from: classes.dex */
public final class cl extends cq {
    public String a;
    public String b;
    public String c;
    public String d;
    public String e;
    public String f;
    public String g;
    public String h;
    public String i;
    protected byte[] j;

    public cl(Context context) {
        super(context);
    }

    @Override // com.amap.api.col.s.dz
    public final byte[] h() {
        byte[] bArr = this.j;
        if (bArr != null) {
            return bArr;
        }
        try {
            JSONObject jSONObject = new JSONObject();
            jSONObject.put("method", "create");
            jSONObject.put("package_name", bw.c(this.k));
            jSONObject.put("model", Build.MODEL);
            jSONObject.put("os_version", Build.VERSION.RELEASE);
            jSONObject.put("os_type", "Android");
            jSONObject.put("sdk_version", "4.3.5");
            String a = cm.a();
            this.a = a;
            jSONObject.put("t1", a);
            String b = cm.b();
            this.b = b;
            jSONObject.put("t2", b);
            String c = cm.c();
            this.c = c;
            jSONObject.put("t3", c);
            String d = cm.d();
            this.d = d;
            jSONObject.put("s1", d);
            String e = cm.e();
            this.e = e;
            jSONObject.put("s2", e);
            String f = cm.f();
            this.f = f;
            jSONObject.put("s3", f);
            String g = cm.g();
            this.g = g;
            jSONObject.put("s4", g);
            jSONObject.put("uuid", cm.a(this.k));
            jSONObject.put("android_id", ca.g());
            jSONObject.put("hostname", cm.h());
            String o = ca.o(this.k);
            this.h = o;
            jSONObject.put("gaid", o);
            String e2 = ca.e(this.k);
            this.i = e2;
            jSONObject.put("oaid", e2);
            this.j = cm.a(ci.d(jSONObject.toString().getBytes("utf-8")), ci.c("YWDR1a2R2WEd0M3RXdHRocg==").getBytes());
        } catch (Throwable unused) {
        }
        return this.j;
    }
}
